import request from '@/utils/request'

// 查询任务状态列表
export function listAsynctask(query) {
  return request({
    url: '/business/asynctask/list',
    method: 'get',
    params: query
  })
}

// 查询任务状态详细
export function getAsynctask(id) {
  return request({
    url: '/business/asynctask/' + id,
    method: 'get'
  })
}

// 新增任务状态
export function addAsynctask(data) {
  return request({
    url: '/business/asynctask',
    method: 'post',
    data: data
  })
}

// 修改任务状态
export function updateAsynctask(data) {
  return request({
    url: '/business/asynctask',
    method: 'put',
    data: data
  })
}

// 删除任务状态
export function delAsynctask(id) {
  return request({
    url: '/business/asynctask/' + id,
    method: 'delete'
  })
}

// 导出任务状态
export function exportAsynctask(query) {
  return request({
    url: '/business/asynctask/export',
    method: 'get',
    params: query
  })
}